Hello

0



-


- - -




Result : --

-

name:
Ali
last name:
Sadeghi
age:
21
color:
Blue
male:
True

Click Me!


it doesn't work :(



onload


==>



sort array - forEach :



- - -

- - -




<a href="javascript:void(0);">

Enter numbers between 5 and 10 :

Erorrs dont work...


Hover me!


Enter numbers between 5 and 10 :

- - -


Hello my color is



Top score :

00

Your score :

0

Time is up!


days ago I started learning web coding.


Until now, the number of days I was in the CS_Internship : Days!


Mahsa Amini was killed days ago.


document.activeElement.tagName :

-


-


.addEventListener("keyup", function (){})

-


document.baseURI :

Site address :


you scroll 0 time so far!


You move your mouse times!



Last Number :

Number length :


Show width and height of the HTML :



document.designMode = " off "



LOOK AT ME ! >:O



Number of element in body:

Number of p :

Number of div :

Number of span :

Number of input :

-


Hello

Hello class : -




Add New Worker




- Deep & Shallow copies for Objects & Arrays -


AlohaObj[keys[1]].age = 21;

const copy1OfAlohaObj = AlohaObj; // shallow copy of object
const copy2OfAlohaObj = { ...AlohaObj }; // shallow copy of object
const copy3OfAlohaObj = JSON.parse(JSON.stringify(AlohaObj)); // deep copy of object

copy1OfAlohaObj[keys[1]].age = 80;

console.log(copy1OfAlohaObj[keys[1]].age); // 80
console.log(copy2OfAlohaObj[keys[1]].age); // 80
console.log(copy3OfAlohaObj[keys[1]].age); // 21

const AlohaArray = [1, 2, 3, 4, 5]; // 1D Array

const copy1OfAlohaArray = [...AlohaArray]; // Behave as deep copy (but it is not!)

AlohaArray[0] = 0;

console.log(copy1OfAlohaArray[0], AlohaArray[0]); // 1 0

// --------------------------------------------

const Aloha2Array = [1, [2, 3], 4, 5, 6]; // 2D Array

const copy2OfAlohaArray = [...Aloha2Array]; // Behave as shallow copy in deeper levels!

Aloha2Array[1][0] = 10;

console.log(copy2OfAlohaArray[1][0], Aloha2Array[1][0]); // 10 10